package woniuxy.model;

import lombok.Data;

/**
 * ClassName:City
 * Package:entity
 *
 * @date:2021/11/1 8:00 下午
 * @author: Tiangle
 */
@Data
public class City {
    private int ID;//主键
    private String Name;//名字
    private String CountryCode;//国家编号
    private String District;
    private int Population;
    Country country;

    public String toString(){
        String str = ID +"\t"+
                Name +"\t" +
                CountryCode+"\t" +
                District+"\t" +
                Population+"\n";
        if (country!=null){
            str+=country+"\n";
        }
        return str;
    }
}
